const express = require('express')
const userController = require('../controllers/userController')

const router = express.Router()

router.get('/all', userController.getAllUsers)
router.post('/add', userController.createUser)
router.get('/getById', userController.getUserById)
router.get('/getByName', userController.getUserByName)

module.exports = router
